{
	template:`
	<a-page-header title="字典类型">
		<template #extra>
			<a-button type="primary" @click="save();">保存</a-button>
			<m-back @click="back(false);">关闭</m-back>
		</template>
		<a-card :hoverable="true" :bodyStyle="{padding:'20px 20px 0'}">
			<a-form class="index-form" :wrapper-col="{span:24}">
				<a-row :gutter="10">
					<a-col :span="12">
						<a-form-item label="名称" class="index-form-item">
							<a-input v-model:value="model.name" placeholder="请输入名称"/>
						</a-form-item>
					</a-col>
					<a-col :span="12">
						<a-form-item label="类型" class="index-form-item">
                            <a-tooltip title="只能输入大小写字母">
							    <a-input v-model:value="model.type" :disabled="model.oid?true:false" placeholder="请输入类型"/>
							</a-tooltip>
						</a-form-item>
					</a-col>
				</a-row>
			</a-form>
		</a-card>
	</a-page-header>
	`,
	props: ['localeZh','param','parentVue'],
	data:function(){
		return {
			model:{},
		};
	},
	mounted(){
		this.model=this.param.model;
	},
	methods:{
		save:function(){
			this.requestData('action/manage/dictionaryType/doSave',
				{model:this.model},
				data=>{
					if(!data.code){
					    this.model.oid=data.oid;
						this.$message.success(data.msg);
						this.back(true,this.model);
					}else{
						this.$message.error(data.msg);
					}
				}
			);
		},
	}
}